// Created by Administrator on 2015/12/1.

extends layout
block page-content
    .col-xs-12(style='padding-top:15px;padding-bottom:15px')
        table.table.table-bordered
            thead: tr
                th id
                th 标题
                th 作者
                th 关键字
                th 点赞
                th 原创or转载
                th 创建时间
                th 操作
            tbody
                each recipe in page.data
                    tr
                        td #{recipe.id}
                        td: a(href='/recipe/details/#{recipe.id}' target='_blank') #{recipe.title}
                        td #{recipe.owner_nick}
                        td #{recipe.keyword}
                        td #{recipe.upvote}
                        td #{recipe.isRaw==1?'原创':'转载'}
                        td #{recipe.createOn?dateformat(recipe.createOn):''}
                        td: a(href='#') 禁用

        include ../public/page_nav

